import request from '@/utils/request'

export function listNotifications(query) {
  return request({
    url: '/system/notification/list',
    method: 'get',
    params: query
  })
}
// 新增以下方法
export function addNotification(data) {
  return request({
    url: '/system/notification',
    method: 'post',
    data: data
  })
}

export function updateNotification(data) {
  return request({
    url: '/system/notification',
    method: 'put',
    data: data
  })
}

export function delNotification(notificationIds) {
  return request({
    url: '/system/notification/' + notificationIds,
    method: 'delete'
  })
}
